{include file='admin/before_body.phtml' title='后台首页'}
<style>
.user-avatar { border: 2px solid #c9d6e5;border-radius: 100%;max-width: 50px;margin-right: 10px;margin-left: 0;box-shadow: none; }
tbody .btn { margin-bottom: 2px }
</style>
  {include file='admin/header.phtml'}
    <div class="main-container" id="main-container">
      <script type="text/javascript">try { ace.settings.check('main-container' , 'fixed') }catch(e) {  }</script>
      <div class="main-container-inner">
        {include file='admin/sidebar.phtml'}
        <div class="main-content">
{$breadcrumbs=[]}
{$breadcrumbs[] = ['name' => '玩家中心', 'icon' => 'icon-home home-icon']}
{$breadcrumbs[] = ['name' => '玩家列表', 'isactive' => true]}
{include file='admin/breadcrumb.phtml' breadcrumbs=$breadcrumbs}
          <div class="page-content">
            {html_messages}
            <div class="row">
              <div class="col-sm-12">
                <div class="widget-box">
                  <div class="widget-header">
                    <h4>过滤条件</h4>
                  </div>
                  <div class="widget-body">
                    <div class="widget-main">
                      <form class="form-inline row">
                        <div class="col-sm-3">
                          <input type="text" name="search" value="{$query['search']}" class="form-control" placeholder="需要搜索的关键字">
                        </div>

          <div class="col-sm-2">
            <select name="opengift" class="form-control">
              <option value=""  {if !is_numeric($query['opengift']) || !in_array($query['opengift'], [0, 1])}selected="selected"{/if}>开店礼品</option>
              <option value="1" {if is_numeric($query['opengift']) && $query['opengift'] == 1}selected="selected"{/if}>已领取</option>
              <option value="0" {if is_numeric($query['opengift']) && $query['opengift'] == 0}selected="selected"{/if}>未领取</option>
            </select>
          </div>



                        <div class="col-sm-4">
                          <button type="subbit" class="btn btn-purple btn-sm">
                            查询
                            <i class="icon-search icon-on-right bigger-110"></i>
                          </button>
                          <a  b href="{url('admin/player/exportOpenGift')}" target="_blank" class="btn btn-sm">导出开店礼品</a>
                          <a  b href="{url('admin/player/export')}" target="_blank" class="btn btn-sm">导出玩家</a>
                          <a  b href="{url('admin/player/export30')}" target="_blank" class="btn btn-sm">导出排行榜玩家</a>
                        </div>
                      </form>
                    </div>
                  </div>
                </div>
              </div>
              <div class="col-xs-12"><div class="space-6"></div></div>
<div class="col-xs-12">
  <div class="table-responsive">
    <div class="dataTables_wrapper" live="grid">
      <table id="table" class="table table-striped table-bordered table-hover dataTable" aria-describedby="sample-table-2_info">
        <thead>
          <tr>
            <th class="center" width="150">头像</th>
            <th class="center">昵称</th>
            <th class="center" width="50">店铺</th>
            <th class="left" width="150">鲜花详情</th>
            <th class="left" width="200">留资详情</th>
            <th class="center" width="100">注册时间</th>
            {if $account->checkPermission(['store.itemcate.edit'])}
              <!-- <th class="center" width="120">操作</th> -->
            {/if}
          </tr>
        </thead>
        <tbody>
          {if empty($list)}
            <tr><td colSpan="10"><p class="center">找不到符合条件的记录<p></td></tr>
          {/if}
          {foreach $list as $player}
            <tr data-id="{$player->player_id}" class="show-details">
             <td class="center">
               <img class="user-avatar" src="{$player->headimgurl}">
              </td>
              <td class="center">{$player->nickname}</td>
              <td class="center">
              {if $player->hasStore()} <span class="label label-sm label-success arrowed arrowed-righ">已开通</span> {else} <span class="label label-sm label-warning arrowed arrowed-righ">未开通</span> {/if}
              </td>
              <td class="left">
               <p> 鲜花：{intval($player->flowers)}</p>
               <p> 待领鲜花：{intval($player->flowers_items)}</p>
               <p> 历史鲜花：{intval($player->flowers_history)}</p>
              </td>
              <td class="left">
               <p>姓名：{$player->realname}</p><p>电话：{$player->phone}</p>
               <hr/> {$player->address}
              </td>
              <td class="center">{$player->created|date_format:'Y-m-d G:i:s' }</td>
              <!-- <td class="center">
                <a href="{url('admin/player/info/')}{$player->player_id}" class="btn btn-xs btn-primary modal-confirm" data-confirm="确认要删除商品分类[ {$player->nickname} ]">合伙人</a>
                <a href="{url('admin/player/info/')}{$player->player_id}" class="btn btn-xs modal-confirm" data-confirm="确认要删除商品分类[ {$player->nickname} ]">好友</a>
              </td> -->
          </tr>
          {/foreach}
        </tbody>
      </table>
      <div class="row">
        <div class="col-sm-6">
        </div>
        <div class="col-sm-6">
          <div class="dataTables_paginate paging_bootstrap">
            {html_pagination page="$page" rows="$rows" count="$count" showinfo="1"
              url="{url('admin/player/list')}" query=$query}
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
            </div>
          </div>
        </div>
      </div>
    </div>
</body>
{include file='admin/after_body.phtml'}
{include file='admin/player/list_flower_log.phtml'}
</html>

